import { PORT1 } from "@/api/config/servicePort";

import http from "@/api";
import headTabs from "@/assets/json/headTbs.json"
import headTabs from "@/assets/json/headTbs.json"
import headTabsTwo from "@/assets/json/headTbsTwo.json"

//考勤-头部选项卡
export const getCheckingInTabs = (params ?: any) => {
	return http.get<{ [k: string]: any[] }>(`${PORT1}/sys/checkin/statistics-header`, params, {loading: false });
	//return  Promise.resolve(headTabs) 
};
//考勤-办公地点
export const getLocationSelect= (params ?: any) => {
	return http.get<{ [k: string]: any[] }>(`${PORT1}/personnel/office-location/china-list`, params, {loading: false });
	//return  Promise.resolve(headTabs) 
};
export const getCheckingInTableHeader = (params ?: any) => {
	return http.get<{ [k: string]: any[] }>(`${PORT1}/sys/checkin/table-header`, params, {loading: false });
	//return  Promise.resolve(headTabs) 
};
//每日考勤列表
export const getCheckingInDailyTableData= (params ?: any) => {
	return http.get<{ [k: string]: any[] }>(`${PORT1}/sys/checkin/day-statistics-list`, params, {loading: false });
	//return  Promise.resolve(headTabs) 
};
//月度考勤列表
export const getCheckingInMonthTableData= (params ?: any) => {
	return http.get<{ [k: string]: any[] }>(`${PORT1}/sys/checkin/month-statistics-list`, params, {loading: false });
	//return  Promise.resolve(headTabs) 
};
//月度考勤列表明细
export const getCheckingInMonthTableDetailData= (params ?: any) => {
	return http.get<{ [k: string]: any[] }>(`${PORT1}/sys/checkin/month-statistics-detail`, params, {loading: false });
	//return  Promise.resolve(headTabs) 
};

//个人考勤列表明细
export const getCheckingInPersonTableDetail= (params ?: any) => {
	return http.get<{ [k: string]: any[] }>(`${PORT1}/sys/checkin/user-month-statistics-detail`, params, {loading: false });
	//return  Promise.resolve(headTabs) 
};